package com.example.mall.common.core.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 自定义HttpException基类- 未知异常 - 500
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class HttpException extends RuntimeException {
    /** 自定义错误码, 默认:9999 服务器错误 */
    private Integer code = 9999;
    /** http的状态码,默认:500 服务器未知异常 */
    private Integer httpStatusCode = 500;
}
